﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_pjgz.aspx.cs" Inherits="系统管理_add_pjgz" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>添加平均工资</title>
</head>
<body>
<fieldset>
<legend>添加平均工资</legend>

    
    
    <form id="form1" runat="server">
    <div>
        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/系统管理/list_pjgz.aspx" CausesValidation="False">返回</asp:LinkButton><br />
        <br />
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="所属年份："></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="year" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="year"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="year"
                            Display="Dynamic" ErrorMessage="只能为4位整数" ValidationExpression="\d{4}"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="平均工资："></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="salary" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="salary"
                            Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="salary"
                            Display="Dynamic" ErrorMessage="只能为数字" ValidationExpression="^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="启用标记："></asp:Label>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="flag" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
                            <asp:ListItem Value="2">不启用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /></td>
                </tr>

            </table>
    </div>
    </form>
</fieldset>
</body>
</html>
